SP Voice Stop (reference) -> err

reference   integer       specifys the channel you want to stop. Use the
                                    reference number obtained from the
                                   SP Open Voice function.
err             integer       returns the error which occured. 
                                    A value of zero indicates no error occured. See 
                                    below for a list of possible errors.

Function to stop the specified speech channel speaking the lines.

The SP Voice Pause, SP Voice Cont and SP Voice Stop functions are perfectly suited to make a row of buttons to play, stop, pause and continue the speech of the selected text in a text field.

When you pass reference value -1 all currently opened speech channels will stop.

Example:
  See the SP Voice Pause topic.

Possible errors:
        0  No Error
      -4  Speech Pack can not be used (Speech Mgr not available)
-3000  Invalid SpeechChannel parameter, probably invalid reference
            number